package com.pl.spring.cloud.alibaba.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EchoController {
    @GetMapping(value = "/echo/{params}")
    public String helloProvider(@PathVariable("params") String params){
            return "hello alibaba provider "+params;
    }

    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/testLB")
    public String testLB(){
        return "当前provider端口是："+port;
    }
}
